package com.kid.springcloud;

import com.kid.springcloud.config.RibbonRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

//@EnableEurekaClient 将应用程序标识为eureka-client
@EnableEurekaClient
@SpringBootApplication
@EnableDiscoveryClient//启用服务发现
@RibbonClient(name = "MEMBER_CLIENT_PROVIDER",configuration = RibbonRule.class)
public class MemberConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(MemberConsumerApplication.class, args);
    }
}
